



const state = {
	token: '',
	address: '',
	userInfo: ''
};

const mutations = {
	LOGIN(state, opt) {
		state.userInfo = opt
		state.token = opt.token;
		state.address = opt.address
	},
	LOGOUT(state) {
		state.userInfo = null
		state.token = undefined
		state.address = ''
	}
};

const actions = {
};

export default {
	state,
	mutations,
	actions
};
